package com.yvdelx.cyclowomen.exception;

/**
 * Functional Exception for the app
 * Created by ydelvaux on 22/02/14.
 */
public class FunctionalException extends Exception {

    private String code;

    /**
     * Constructor of functional exception
     * @param detailMessage String
     */
    public FunctionalException(String detailMessage) {
        super(detailMessage);
        this.code = detailMessage;
    }

    /**
     * Get the error code
     * @return String
     */
    public String getCode() {
        return code;
    }
}
